package com.horsen.service.edu.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.horsen.service.base.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 课程 实体
 *
 * @author Horsen
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_course")
@ApiModel("课程")
public class Course extends BaseModel {

    private static final long serialVersionUID=1L;

    public static final String COURSE_STATE_DRAFT = "draft";
    public static final String COURSE_STATE_PASS = "pass";
    public static final String COURSE_STATE_FAIL = "fail";

    @ApiModelProperty("课程讲师ID")
    private String teacherId;

    @ApiModelProperty("课程科目ID")
    private String subjectId;

    @ApiModelProperty("课程科目父ID")
    private String subjectParentId;

    @ApiModelProperty("课程标题")
    private String title;

    @ApiModelProperty("课程售价(0免费)")
    private BigDecimal price;

    @ApiModelProperty("总课时")
    private Integer lessonNum;

    @ApiModelProperty("课程封面")
    private String cover;

    @ApiModelProperty("销售数量")
    private Long buyCount;

    @ApiModelProperty("浏览数量")
    private Long viewCount;

    @ApiModelProperty("课程状态(draft未审核,pass已过审,fail未过审)")
    private String status;
}
